import { createRouter,createWebHistory } from "vue-router";
//导入组件
import LayoutVue from '@/views/Layout.vue';

import TalentManageVue from '@/views/talent/TalentManage.vue'
import TalentResumeVue from '@/views/talent/TalentResume.vue'
import RecruitmentManageVue from '@/views/recruitment/RecruitmentManage.vue'
import RecruitmentInterviewVue from '@/views/recruitment/RecruitmentInterview.vue'
import TalentDataVue from '@/views/talent/TalentData.vue'

//定义路由关系
const routes = [
    {path:'/',component:LayoutVue,redirect:'/talent/manage',children:[
        {path:'/talent/manage',component:TalentManageVue},
        {path:'/talentResume/manage',component:TalentResumeVue},
        {path:'/recruitment/recruitmentManage',component:RecruitmentManageVue},
        {path:'/recruitment/recruitmentInterview',component:RecruitmentInterviewVue},
        {path:'/talent/talentData',component:TalentDataVue}
    ]}
]

//创建路由器
const router = createRouter({
    history:createWebHistory(),
    routes:routes
})

//导出路由
export default router